If you cast a spell exactly at the same time Craig hits you with his ability, your spell doesn't work, it stays in limbo leaving your deck without the card, and the energy is spent anyways. Here you go devs.
Thanks for the report. The team is aware of this bug and they are working on a fix for a future update! There will be more information about this when we have more to pass!