fixed bug where unit of work was swallowing exceptions