after the transaction doesn't go through for a certain amount of time ur wallet will rebroadcast the transaction or it will be canceled and returned to your wallet. you have nothing to worry about --unless that exchange input address gets reused -- but u might not be able to get to ur coins for a few days/ up to a week