rm mainFrame, a tmp dir