improve Terminate Statement