Shutdowns the kernel.
This method is mainly useful when doing functional testing.
void
public function shutdown();