Detach screen on logout