added defered close call for redis connections