if it is really bad, well you will just have to cancel. that happens to the best of us and IS NOT YOUR FAULT.
else, take painkillers and immodium or something, do the thing, then go home immediately and sleep for 12 hours. or something like that.
i hope that you will feel better soon!