release onSave callback on close