Add error handling for gem load error