Add `-stopafterblockimport` option

Stop after importing blocks. This can be useful for development, batch testing and trouble shooting.