onShutdown method
Shuts down the program by disposing the collection.
This gives any other parts of the rover a chance to shut down as well. For example, if the Subsystems program shuts down, the drive firmware would continue out of control. Overriding this function gives it the chance to stop the firmware first.
Implementation
@override
Future<void> onShutdown() => collection.dispose();