Catch IllegalArgumentExceptions thrown by guards