Change connection status before handling data packets.