Fixed exit cmd, waiting log messages