finish record mode