make close panel delay configurable