Fix closing by access time. Use activate tab time instead os.path.getatime