Guess you'd have to pay back the deposit.
It's illegal to sublet an accommodation anyway.