Merge "Detect and handle premature termination of a recording session" into kraken