catching remove command exception