refactored Import action to better handle errors in go routines