Added terminate command - fixes #10