Logout and close for student module