make the plugin resilient to nginx restart or being stopped few
minutes