Properly exit from servlet after redirects.