Fixes: #2474 Error deleting object from queue