Make sure that the onComplete promise is only accepted once.

This prevents the case that if success is false, the promise
is tried to be accepted twice, therefore raising an exception
inside the netty eventloop.