Close Blockly on Success/Failure

With triggers to make it so and actionFactory additions. @BrettASwift