add script to kill background process