when aborting, wait for process to exit