Catch VM shutdown and print results if possible