Cleanups to frontend_ctx