fix bug in Close Request action
Close Request should only appear if the Capability request is not sealed and has all versions in either an 'Error' or 'Failed' state. If a request is closable, but not already in Failed state, the request had a mix of 'Failed' and 'Error' versions. Therefore the request will be set to 'Cancelled' on close to maintain state consistency.
** Update: after discussion it was decided that the capability request state setter was missing conditions. A mix of 'Failed' and 'Error' states on component versions now also sets the request to 'Failed'
If the button shows and request closure is not possible, the endpoint will return the error to the system_messages field for display to the user as shown below. This should not be possible, but if it happens, the users will have an informative reason for the action's failure.