"trap" added

A “trap” line was added in case the service check times out. If the
service check times out, the rsync destination folder is removed before
exiting.