Shut EM down after each test if it was running.

* And kill the spawn thread in notifying_plugins_spec

Signed-off-by: Phan Le <ple@pivotal.io>