Handle and test for failed restart in session.js