Added callback for send/dev.write

Need callbacks to handle errors