Added option of closing error popup

Signed-off-by: Exikle <dixondcunha@hotmail.com>