Improved the check if applications are running