close on different errors