hacky support for offline trial data logging and flushing the decoder buffer when a trial isn't active