Fix double close request