Cleanup try/except clause