Fix #401: SD fails to start when using "load previous solution on startup" and the solution load fails with an unhandled exception.
Fix unit tests.