Fixes to processor shutdown.
Modifying processor test case to fit shutdown protocol.