this should actually be hbaseAdmin.close();
There is no way hbaseAdmin can be null here.