Change CLI behavior where it would hold a file open for no reason.