Minor changes to Software Secure API, better handling of API errors.