add rescue to each function that logs execptions and return a EnginesOSAPIResult marked as failed withthe execption and backtrace in the message
rescue statements ion each function to log exception and return error result with details of exception