Fix

- added a success callback to sendStatement to handle failed and
successfully sent statements.