Avoid throwing exceptions internally