remove heardbeatsocket