close activity after error