fix bug: add return when msg is 'close'
add file removal log into mylog