kills process to clean up memory.