Make sure that the socket is available before starting listening.