Restore error handler after test steps are finished