Added auto closing plugin