remove the timeout function. the close button will do