Chunk server: if granted event pending, then prior to processing current event, remove client state machine entry from the pending queue and dispatch granted event if no other pending events exists, as the client state machine can delete itself in the case if the current event is connection close or error.