Added this.finish() for end of activities.