Remove nested try/catch