Add comments for q7
Manage close in IO