I sent ~2800 coins from my wallet to an exchange yesterday, and got a message saying transaction was rejected for possibly being already spent (I don't remember the exact wording). Now this transaction is sitting unconfirmed, and my balance has 2800 coins deducted.

Any way I can recover them?
Will they be credited back after a while like an unconfirmed bitcoin tx?