Adding native exceptions support