Cleaning the async socket listener up a bit.