On stop, don't log out from master if ot logged in

This would just fail anyway, because we don't know our agent_id
Merge pull request #78 from guidow/logout_only_if_loggedin

On stop, don't log out from master if ot logged in