Deactivate action upon successful parse if its pattern is not open. Fixes #16.