Excepthook properly reset inside the new excepthook function in order to prevent excepthookception.