Several unsuccessful attempts to fix server hangup bug (possibly something with passport Auth?).