Add errors support

ApiImport throws exception you can catch
sending errors