Replaced error string with traceback
Now truely closing the exception file
Fixed UTF encoding and a bug