Exceptions won't be caught in debug version so that VS can catch them