force close (in order to write resources)