Improved handling of closing applications, added background procs to
close-other-apps exclude list, fixed bugs