JAL-3921 wait around until session file has been written