Sounds to me like you got musked! Corn snakes aren't too well known for it, but they can musk and will do if they feel threatened. Snakes can go months without going to the toilet, and somtimes they're little poop machines. Honestly, it just depends from time to time.
Assuming you DID get musked - then try to handle a little bit gentler. 10-15 minutes at a time is good.