close activity after save measurement