fix hanging processes