def logout(n):
    """
    Quit StaSh
    :param n: exitcode for the shell (not implemented)
    :type n: int
    """
    import threading
    t = threading.Thread(target=_stash.close, name="close thread")
    t.daemon = True
    t.start()

    Quit StaSh
    :param n: exitcode for the shell (not implemented)
    :type n: int
    
bin/logout.py