Close filehandle