Fixed NullReferenceExpection and changed emulator cant close using X and need use escape