SERVER-13961 Get rid of some usages of dbexit from deep in sharding code

This change prepares for removing dbexit altogether.