Move ALPN handling from finalizer to delayed call