Added pidfile unlocking.