Implement some shutdown procedures for processes, don't know if they
help prevent zombie processes