added logic for pausing, ending, and setting current thread state in RunHook()
added logic for pausing, ending, and setting current thread state in RunHook()

bilbil/enhance,bilbil/enhance,clearlycloudy/enhance,clearlycloudy/enhance,bilbil/enhance,bilbil/enhance