Don't catch errors/exceptions when debug is enabled

Makes debugging a bit less of pain

@karlitschek @DeepDiver1975 @butonic