job manager clean up and close fix
retry to connect to manager, clean up
clean up