finish the error window