Cleanup mockAPI when parserTests are killed

 * Reported on irc by Krinkle that the jenkins slaves have a bunch of
   old processes laying around.

Change-Id: Ifd7ce9a681b3209b0360835cd58721b3b47f9cbc