A Redis connection can be estabilished by passing a block
Graceful exiting strategy added