added warning about closing