A few month back I opened a channel with 3M sats and then did a loop in to move funds to the other side to balance the channel.
Since then most of the funds on my side also moved over to the other side. Yesterday by mistake I closed that channel and only 30,846sats arrived in my BTC wallet instead the 3,000,000sats.
I thought closing a channel automatically transfers all my sats back. Apparently not, expensive lesson but never mind.
Just want to know what is the correct procedure to close a channel when some or all of my funds are on the other side and hopefully this will help others not to make the same mistake.