Remove environment on PmProxy NotFoundException