added closing of message on second click for timeout messages