Add abort function to Command