Changed loglevels
Bugfix, exit in wrong place