master: Fixed logging when uncaught exception is not an Error type