Configurable pidfile and daemonize cleanup