catch 'could not connect'-exception