Remove unused import
Add error management for the different steps