Try to make the power monitor more robust

Try to reconnect to upowerd if using our current connection to it fails.