Adds a number of attempts for connect

The connectAttempts option disable leap motion library if couldn't connect after connectAtempts failed connections.
Value -1 is the original behavious : try forever.