#fixes MLHR-1008
added the log
closed existig stream and added the sleep of 1000 ms