Delete obsolete unused file
add some error handling