Bug fix: Session not closed after calling redirect on nginx(). Added function shutdown_ophal().