Bugfix: permature exit