Bugfix: error message after programm exit