- unified sleeping function _sleep(), including smartSleep - prevent sleeping if transport is not ready - add debug log messages