Fixed exporting dangerous function exceptions