Check whether build is cancelled during building. Fixes #37.