close
Closes this resource by performing a graceful shutdown.
This method implements the AutoCloseable contract and delegates to the stop method to ensure all ongoing operations complete before the resource is closed.
See also
AutoCloseable.close
Throws
if an error occurs during shutdown