ensuring that the connection is thrown regardless of the state of the promise