Refactor exit plugin function
Merge branch 'master' of github.com:cozy-labs/cozy-light

Conflicts:
	cozy-light