Catch requests exceptions.

see #551