[BUGFIX] Added specs for avoiding commands to be executed while components are shutting down