Sync might not be defined

Sync isn't defined if npm-local couldn't make a connection. This prevents an error from happening on `ctrl + c`.