Add pause before close program if was errors.

Signed-off-by: isadchenko <Igor.Sadchenko@gmail.com>