Catch exception comming from closed java projects, and add checks for project.isOpen, closes assembla-1001465