no socket errors or anything? maybe try adding a timer to keep the socket open till you're finished then close it after