Wait on the process being killed