MissingReferenceException after PhotonNetwork.ReconnectAndRejoin

Options
Hi everyone,

I`m trying to manage a way to reconnect a player that disconnect for a timeout caused by a bad connection or switch between wifi and mobile network and etc. I`m using something like this:
        private bool rejoin;

        public override void OnConnectionFail(DisconnectCause cause)
	{
		if (PhotonNetwork.Server == ServerConnection.GameServer)
		{
			switch (cause)
			{
			case DisconnectCause.DisconnectByClientTimeout:
			case DisconnectCause.DisconnectByServerTimeout:
				rejoin = true;
				break;
			default:
				rejoin = false;
				break;
			}
		}
	}

	public override void OnDisconnectedFromPhoton()
	{
		if (rejoin)
		{
			PhotonNetwork.ReconnectAndRejoin ();
		}

	}

	public override void OnJoinedRoom ()
	{
		if (rejoin) {
			//Do some stuff
			rejoin = false;
		}
	}

The player is reconnecting fine. But after reconnection, everytime any script need to check photonView.isMine, I get this error:

MissingReferenceException: The object of type [script name] has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.


Anyone can help me see what I`m doing wrong? Why photonView.isMine is trying to get the old player, and not the reconnected one?

Thanks.