Implemented exception handling for SphinxSearch and for Redis