Implements Drupal\Component\Gettext\PoStreamInterface::close().
Exception If the stream is not open.
Overrides PoStreamInterface::close
public function close() {
if ($this->_fd) {
fclose($this->_fd);
}
else {
throw new Exception('Cannot close stream that is not open.');
}
}