Fixed unhandled exception handler, it should be now correctly writing to debug.log and server.log file.