set device state to 4 on disconnection