Wait after closing socket to re-use, seems to be some timing issues?