correct exit app behavior

fixes #43