fixes stack overflow error when closing a camel context via jmx (see ECLIPSE-1039)