Let [itex]X[/itex] be a set and [itex]\Sigma[/itex] a collection of subsets of [itex]X[/itex] such that: (1) [itex]\varnothing ,X\in \Sigma[/itex]; (2) [itex]A\in \Sigma \Rightarrow X \setminus A\in \Sigma[/itex]; (3) If [itex](A_n)[/itex] is a sequence of sets in [itex]\Sigma[/itex] then [itex]\bigcup_{n = 1}^{\infty }A_n\in \Sigma[/itex]. Such a [itex]\Sigma[/itex] is called a [itex]\sigma[/itex] - algebra. Any [itex]A\in \Sigma[/itex] is said to be measurable or [itex]\Sigma[/itex] - measurable.
As an example, take [itex]X = \mathbb{R}[/itex] and let [itex]\mathfrak{B}[/itex] be the [itex]\sigma[/itex] - algebra generated by the collection of all open intervals [itex](a,b)\subseteq \mathbb{R}[/itex]; [itex]\mathfrak{B}[/itex] is called the Borel algebra. In particular, note that by this definition the Borel algebra also contains all closed intervals [itex][a,b]\subseteq \mathbb{R}[/itex]. So both open and closed intervals in [itex]\mathbb{R}[/itex] are [itex]\mathfrak{B}[/itex] - measurable sets.
Finally, there is no a priori topology on a measurable space [itex](X,\Sigma )[/itex] and as such the notion of a measurable set or [itex]\Sigma[/itex] - measurable set precedes the notion of open and closed sets, with regards to [itex]\Sigma[/itex].