exit properly after finished testgame