Fixes #25

Will reconnect up to 3 times before giving up. Counter resets upon
manual disconnection or giving up.