Take advantage of Cocoa Error Handling Architecture in the asynchronous key pair generation