Squaring offhelp required

Hi I need little guidance on squaring off, I purchased a put for Kotak Mahindra yesterday with strike price of 1240 for 25th Jin expiry, however I squared off the same at 1241 and made a profit of rs 1600 … however I want to understand if this trade is closed, also do I have any liability if the price drops or moves above 1240

You are out of the position and have no liabilities whatsoever.

Thanks for your response