Resuce EINVAL errors

- Rescue EINVAL errors and turn them into ECONNREFUSED. The redis library will properly handle this type of exception.