Added support for redis server reconnect

The plugin was causing loses connection to the redis server.