Fixed app hanging when API call failed. Closes #3

Also added logic to handle the situation where multiple requests have
been issued.