Linux: Fixed closing error.