Implemented restart of btsync in case of crash, consolidated shutdown behaviour and made logging on connection issues more consistent