catch InvalidTransition errors