Unix daemonization and saving a pidfile added.