Allow to restart message sending loop once it is completed

Signed-off-by: Harsh Panchal <panchal.harsh18@gmail.com>