configurable reconnect interval
use type for error response
for writer error hadnler that logs errors