Fix process leak