url: remove unused Cookie class
yamlserializer: fix a potential data loss bug
pidfile: fix a potential silent write failure