v1.2.1 auto remove old logs - better error handling