added closeonmax documentation