Issue 1592: Better error reporting for operations on closed shelves.