Centralize handlers for signals and PHP errors