Reconnect after timeout, fixes #1