Stopping only inactive Gradle daemons

Is there a way to stop only inactive Gradle daemons?