Close gateway and releases resources.
For some implementations this will render the Gateway unopenable, as such, all implementations should be handled as if they are irreversibly closed.