Unable to close Options PE position

Same is applicable for Call Options as well.

The option will be settled at 0 value and the shares will be delivered to you at the strike price. Which will be the buy average price for these shares.

As you’re option buyer, you’ll be losing the premium paid (Premium * No. of Lots)