improve span submission error handling (#45)