Add a return statement to the callback

To prevent a "callback already called".
Merge pull request #1468 from Schamper/patch-1

Add a return statement to the callback