I've never disabled the close operation (which I think might need more than just hiding the X - to handle shortcuts), but I do use a method in line with the nav/hidden form approach mentioned by several here to present users an "are you sure?" so they don't accidentally close and get frustrated...