As Defcon stated, no deposit or withdraw is lost. More than likely, the transaction will be deleted and your account will appear as though it never took place. At that point, you can simply withdraw the funds again.