After posting the last comment i realized that it does not make sense with dependencies as well. Confused myself.
Maybe the best option would be to only have those graceful shutdown hooks and dependencies as part of deployments, separate of other services like connectors. This would require that we undeploy all deployments before shutting down the server and other services. This seems to be better, since it would also support a graceful undeployment of a single deployment.