Remove unused import
Handle errors during foreman request