They shouldn't be able to close without something in them.
but there are times where they will prompt to allow just that.
if you get one stuck closed, try rotating an item into it so you can trigger the open