Close the figure automatically graph in plotly after 30 seconds of Pause

I already complete the part of the plotting. I simply need to close the figure after 30 seconds of pause in the .py file. Is it possible in plotly. If yes how can I do that.