Thinking out loud and curious how it works...
What's the language on the commitment? If you pay the money back is there anything else legally holding one there? How is it prorated?
So you'd be out the taxes. What's a bonus tax rate?? Prolly 25%ish
If prorated, after six months you wouldn't be out of pocket at least.