Set std_error_handler as default error handler for API calls