ignore errors if something wrong happens in excepthook.