quitting works again, better logging