better error handling when netsuite fails