Error handling update

Improved error handling on Test-LogOnAsService