Popup closing

(and console.log cleanup)