[ADD] Implemented logout method. Fixes CTFPAT-196