Disabled "heartbeatThread.Join" statement to avoid deadlock