Fix errors

Error log full of LS errors, I think code after the cuusoo->ideas redirect
was still being executed before the actual redirect was performed, so
stuff was screwed up. Forced exit now. Also tiny code style fix.