Needed because Looper could be used by Java and it would crash complaining that we didn't detach otherwise.