close streams and resultsets