Log pid on start and stop