close streams in server
fixes to server