tighten up Close() call and error check in (RollingFileAppender) rotate()