Improved error handling and wrote extraction errors into log file

For now, we write the errors into the log file. Later, we will change
the UI and present the messages to the user. Also Removed unnecessary
passing of empty errors list.