logout on master