Basic connection and exceptions working.