write pid for renderer app for reliable restart