Fix object allocator memory leak.
Reset timeline and frame history whenever the client reconnects.
Fix overflow exception whenever a thread stops sending samples and when the frame history is reset.