make sure to return when calling sendError