Add some exits in mk.sh