Kill tail during cleanup

add something to kill tail process on cleanup.
also move setting prompt command to here from harbormaster