add a stack trace to the logs when a fatal error is catched.