Allow configuration to specify a query to be run when hibernate environment is shutting down. This is useful for hsqldb which requires a SHUTDOWN command to be sent if the database is to shutdown without the jvm stopping (otherwise a lock file remains)