added heartbeat thread which (at default) sends every 5 minutes a
"whoami" command to not let the connection get a timeout