Catch all exceptions, fix crash when no current session open