moving launch logic to a new ns
adding clear locks to shutdown