cleanup and prevent writing on the stage at start