Fix redis-cli from exiting after idle connection breaks

Closes #2066