syncer exits when a signal is received

Signed-off-by: Momchil Atanasov <m.momchil@gmail.com>