fix: Daemon invoker lifespan must be shared with daemon process lifespan (#1196)

* fix: Daemon lifecycle must be shared with daemon invoker

As long daemon is alive, the daemon invoker must be kept
alive as it holds the "resident" object graph of Maven.

* Add hack

This is a bug in resident invoker
4 files changed