fixes issue, where the last hits weren't stored due to an early process.exit