catch ssh exceptions.