Fixed removing all cookies on close option.

Closes #731