Finish all activities that has been created when the program was closed.