Fix the race condition caused by cradle's create() and destroy()