added trap statement for aborting credential setup