Added some simple error handling at the market api