Changed reconnect code to work if the bike disconnects during running