Updated to dump partial transactions prior to shutdown