implements the process of simulation closing.
updated TODO list.