Consider socket error as connection failure
Closes #2 add paging to transactions