[FLINK-1208] put logging into close() & change Boolean to boolean