Pull Request for Issue576: AMLoopAction3/AMListAction3 Destructor

Had to write new functions to handle scheduleForDeletion() properly. Had to add functionality to wait for logging to be completed before deletion takes place for some actions. @dretrex could you check on this and make sure it also runs scans correctly on your beamline? Cheers.

(Maybe the correct merge branch this time)