close mainlog,,,