fixed ttl for events
fixed -f parameter stop the threads
redis db now clearing at startup