Update terminate.java