Fixed async/close integration test