better listener removal on stdouts