warn user by closing project