Add a little protection to prevent file opens when shell is done.

Test: N/A
Change-Id: I28b75fb67bc576dfb172ea431ab50e2b2c193ece
1 file changed