properly clean up process