Changed printstack and added close drive after clear cokkies.