Fixed socket-in-use error.