Clean up other state on tab close