Add CloseRelatedWhenGraphIsClosed behaviour. Add events to graph state transition. Fix graphAcquire return value.