Method to register function that isn't a decorator
When debug is on, exception in handlers get raised

Application crashes on handler exeptions in debug mode.