Friendly API

Added a friendly API to have quick low effort servers and clients.
what was the purpose of this statement to set s.closed =  false?
was there a chance it was left closed at this point?