make sure that exception will not break app completely