Exiting the matrix.