Hi, I'm Ashik. Welcome to JustAnswer. I'm reviewing your question now, and will post back with your reply ASAP
It sounds like your Mail application is frozen. Press Command, Option, Esc keys and this will bring Force Quit. Select Mail and click Force Quit. Then try to open Mail or shutdown your Mac.
Please let me know if that didn't work, so we can continue troubleshooting