---
name: "UR::Exit"
section: "3pm"
platform: "linux"
package: "libur-perl"
version: "0.470+ds-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/UR::Exit"
---

# UR::Exit(3pm)

methods to allow clean application exits.

## NAME

UR::Exit - methods to allow clean application exits.

## SYNOPSIS

```
  UR::Exit->exit_handler(\&mysub);
  UR::Exit->clean_exit($value);
```

## DESCRIPTION

This module provides the ability to perform certain operations before an application exits.

## METHODS

These methods provide exit functionality.

- exit\_handler

  ```
    UR::Exit->exit_handler(\&mysub);
  ```

  Specifies that a given subroutine be run when the application exits. (Unimplimented!)

- clean\_exit

  ```
    UR::Exit->clean_exit($value);
  ```

  Exit the application, running all registered subroutines. (Unimplimented!  Just exits the application directly.)

- death

  Catch any die or warn calls.  This is a universal place to catch die and warn if debugging.

- warning

  Give more informative warnings.

## SEE ALSO

**UR**(3), **Carp**(3)
