BUG-904 make sure redis connection is returned to the pool (closed) after each request + minor formatting fix