Close the activity after exercise time expires