Closes the stream when the helper is destructed
public function __destruct() { if (is_resource($this->stream)) { fclose($this->stream); } }