Replace Exception with invalid state