When it comes to close. I had a player end up 4xp short of leveling in my last session. Ironically he had spent 3xp earlier in the session so he would have been only 1xp short if he hadn't cast the spell. Fortunately for him that was at our meal break so by the end of the session he was able to level up.