Metrics db-reporter problem

Hi!

I recently switched to a setup with springboot. I noticed when the app is closed via CTRL-C or actuator shutdown call metrics db-reporter causes an Exception This happens to me on H2 and MySQL. See the following stack trace for H2 (the db is configured to be kept open until the JVM shuts down - DB_CLOSE_DELAY=-1 and DB_CLOSE_ON_EXIT=FALSE). If I disable the db reporting in the properties it works. Happens on version 2.2.0

Thanks.

Ok, found the answer finally. This is because I had the spring-developer-tools included. Apparently they trigger a graceful shutdown (via a shutdown hook) of the database resource.