Fix startlevel

Fix the issue where the start-level wasn't correctly reset when an exception occured in a previous session.