Split off the listener thread