Learning to Terminate in Object Navigation