Better logging statements (include pid)