Fix errors setting cookies to be non-fatal

closes #20