Handle error without set +e