Just keep the doors closed and wait, checking every few seconds until they're not there anymore. They'll go away eventually. Bonnie has a bad habit of staying there for a while longer than Chica, but she'll go away eventually. Just keep the doors closed and check every few seconds.