before a process exits, it should clean up after itself
in particular, open file descriptors need to be closed