[CLC-1177] More checks on ejecting cassettes

JIRA: https://jira.media.berkeley.edu/jira/browse/CLC-1177