SAMZA-382; properly shutdown jmx server when an exception occurs in samza container