Add method to ensure parsoid and mock servers are killed when exiting

Based on be83d40bdc0a297049f399276ae2c9a82adf1932 by Arlo.

Change-Id: I9e0de294ec8c86363f0f53da7d53363b8e049b0c