adapt BJ so that it can deal with the different way connection exceptions are thrown and handled by saga-python

fix #146