fixed #23 stopRetrying issue. Also added test stopRetrying-unix-socket