Fixed sendBuffer to return a Maybe Buffer incase allocation fails
Fixed sendBuffer to return a Maybe Buffer incase allocation fails