Trying to close stream