Closes this resource by performing a graceful shutdown with a 30-second timeout.
This method implements the AutoCloseable contract and delegates to stop.
if an error occurs during shutdown