Make the canvas and dock frames close the CM when clicked.
Add subject id and block to log file names.