I want to await asynchronous behaviour when the user types `exit`, followed by the actual termination of the process. Is this possible?