Add ability to interrupt the runtime

This fixes #12, #35