Gulgong man given opportunity to 'stay clean'