refactor: refine OCPP message sending error handling