Try to go to the action can execute event, in the common script module in workflow, then under the action can execute, type :
msgbox (ActionName)
That will le you know the action name for the close button. then you can use:
actions.action('ActionName') .enable= false
actions.action('ActionName') .visible= false
regards