Return error code for unhandled exceptions when running service under ConsoleHost

This makes the behaviour consistent with the WindowsServiceHost