added logs on send failure. simplified return types
Merge pull request #1 from bogdan-coanda/master

added logs on send failure. simplified return types