Add a modicum of logging on exceptions