Correctly handles processes dying from signals