fix crash
Dont catch exeptions with debug build (for correct stacktrace)