Handles dec flag on disconnects