fixed wrong parameters of slog_close call