'close' option closes connection after handlers called