Fix catch pattern to match all errors

Addressed https://github.com/basho/riak_core/issues/350