Implemented Connection Open/Close Handlers.