cancel running gradle build in ShutdownHook