You can cancel an active production anytime you want by simply clicking on the respective building and choosing the red 'Cancel Production' button.