Nicely wrap connection-related exceptions
Add settings to keep alive during long queries (Issue #9)