Update swapmanager.py

Added error handling for redis disconnect.