adding catch to socket promise