# doStop method

1. @protected

Future<void> doStop()

Template method invoked during stop to perform shutdown logic.

Subclasses can override this to clean up resources, close connections, or perform graceful shutdown procedures.

Example:

    @override
    Future<void> doStop() async {
    logger.info("Cleaning up resources before shutdown");
    }

This is part of Jetleaf – a framework which developers can use to build web applications.

## Implementation

    @protected
    Future<void> doStop() async {
      // Default implementation - subclasses can override
    }