added exception handling when api is down

Also fixed so you can search by pressing enter