how to stop programs from running in the background