Add in error handling and error returns for various failures when sending a file.