Use completion hook to manage node module inside require function.