Improved logging and robustness of async code
Fixed small bug in XBeeOutputStream where a full buffer will only flush after timeout.