close plugin after download