readline on finish never worked