Fix singleton access after destructor

(Closes: #53)