Updated for invalid_argument throws within deallocate