Add custom exception handler to get full stack traces logged.