Re-add a try/catch around queueing a thread to wait for the process to exit