Is there any way to force the gradle daemon to stop at the end of a task?

Would be nice being able of communicate to the daemon from a task that can be stoped.

Regards