exit if fail to open logs