Added commands to close redis connections