Demonstrate exception handling

http://ideone.com/ue6K7Z