fixed pid issues with some apps not closing