Return NSError on exceptions