Add context handlers to Connection()