Move post stop action into finally block and only autorestart if autorestart property set to true