Observer

Actually why do you have separate module for logout functionality\