Added notification center notifications.
Minor cleanup.
Handle all types of connection errors.