close the connection to student file