Improved HeartbeatService concerning Threading

Signed-off-by: Oliver Libutzki <o.libutzki@external.telekom.de>