Speeding task exit in the wait system call.