Fixes issue with hangups not being sent and external process never terminating.