Fixed parameter name to be consistent with type.
Added failure to reconnect handler capability.
Merge pull request #116 from sjardine/master

Added onFailureToReconnect support