jhaynie/iphonesim — pull request #14 by sotownsend (2014-12-16 16:49:27+00:00)
Title: Exit Properly (Documentation)

In the docs it mentions to use killall launchd_sim, but this only works if you closed the application prior to running the command and ocassionally i've seen the services not exit in certain conditions.

Suggest to replace it with

sudo ps -A | grep -e "launchd_sim" -e "simulator" -i | grep -v grep | awk '{print $1}' | xargs kill -9