Catch bad syscall deaths
Merge pull request #9 from codius/cleanup