fix typo
remove unused includes
catch rusage report for broader exit cases
terminate only process under control