capture all constructor errors