I think for some reason the amount was automatically returned to the sender instead of the cashout address.
Session had expired and addresses changes on each login with a cashout address. Previous one being an invalid deposit address... Something like that.
That seems silly. Never return Bitcoins to the 'sending address' unless you make it clear that your site only works with 'compatible wallets'. Can't you either
a) always keep the same deposit address per user, so they don't have to worry about it changing all the time, or
b) remember all the deposit addresses you've ever given a user, and allow deposits to any one of them to credit his account
Switching deposit addresses each time they log in seems excessive, and dangerous for people using shared wallets.