Fix catch pattern to match all errors

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