Closes the resource, releasing any underlying resources.
This method is calling shutdown with default timeouts under the hood.
Unit