start|stop|restart primary, query with retries for RS connection

also stop secondary|arbiter refactor
bulk write with writeErrors and writeConcernError