Fix bug where failed exec leaves child processes to interact with