:bug: raise exception when to open related when no file is opened

Close https://github.com/hmatsuda/rails-transporter/issues/58.