Closing a minimized window in the taskbar

Whenever I have a window that's minimized and try to close it through the right click menu on the taskbar, it doesn't seem to get closed. I'm pretty sure it actually does, since I can't find it in the task manager, but it just stays on the taskbar still looking as if it is running. While trying to close it, a force quit window appears for the selected application but doesn't accomplish anything.

I'm on Manjaro 20.0.1 with Cinnamon 4.4.8.

Forum kindly sponsored by