Changed unhandled_exception_hook behavior

- Pass request object as second parameter
- Don't call it when Server.debug is true