remove singleton lock on exit properly