Wait for serial to be ready when available
Add disconnection checks