remove the close_stream function

there is no need anymore for this close_stream function, only closing
the client is enough now