Hello, I have a trouble with running the attached program, the program runs the first time without any problem but when I try to do it second time the following error pops up:

Exception in thread...