Kill hanging subprocess