[logger] added fclose to logrotation;