If you're in the middle of a sync when you disconnect it will, of course, mess up that sync. All you have to do is connect back up and start the sync from scratch. Likewise, if you're in the middle of transferring a file(s) it would obviously mess up that transfer. It won't hurt the phone itself.