Prevent to run in bootstrap when application running in console mode.