added exception handling when api is down
Merge pull request #33 from luuse/jmogui

added exception handling when api is down