more descriptive exception on invalid pop