If a pane is killed, cancel reading from the file. GitHub issue 3422.
Break message type stuff out into its own header.