Autoclose scratch after completion