Found and corrected an issue where nagios-api attempts to write to its PID file twice and decides to quit.