logout flushing singleton