Close inspector when inspected window unloads