closing filehandle