client: Make connect callback optional