Attempt to save object to file.