handle hanging processes