added handlers for disconnect / connect_failed errors, removed source tab from code view