catch any exception (some can be thrown by httplib)