Gradle daemon never stop after closing IDE

The Daemon should time out after 3 hours of inactivity. You can read more about the daemon in the User Guide: https://docs.gradle.org/current/userguide/gradle_daemon.html

You should be able to explicitly stop it with gradle --stop