Implement cancel build handler