Replaced excepthook which I'd removed by mistake