Fixed BufferedReader exception when closing GUI
Merge pull request #10 from gabofratta/master

fixed buffered reader exception when closing gui