Improved error handling for Karaf managed container