application hang workaround