exec with error should not throw