Different actions of the kind of releasing streams, stoping advertiser,... are taken when the following situations occurs:
 - Stream encounters end
 - Peer change state to notConnected
 - Application enters in background