TODO: Implement support for shutting down backends at exit/stop