Add missing returns. Fix #319

Really simple pull request to add a few missing returns after redirects so the functions stop executing.