filter runs as a simple Groovy daemon
handle shutdown better