Revent is terminated from WA via a 'SIGINT', therefore this means that in order for revent to receive the signal and deal with it accordingly, revent always needs to be listening on STDIN regardless of the 'wait_for_stdin' flag.
clean_up