fix: throwing an exception if a send file could not be opened (plus corresponding uint test)