wrap send in try block