Saving number of the current instance to `restart`, fix #143