Handle 500 error that indicates a receive has timed out and retry the command instead of raising an exception.
Merge pull request #25 from cchurch/handle_receive_timeout

Retry receive instead of raising exception for long-running command