Rescue EINVAL errors when connecting

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