app: a bunch of actions which should be inactive when there is no image
Fixed an error in the close-port function. Closes bug #719396.