Unclosed asymptotic expansions and mock theta functions