Suppress setcookie() errors when catching error messages

Fixes #108