Improve invalidate handling (#412)Added handling for identify resume and closing on op 9 (commit: f0a7203)