Cleanup functions; don't add bg/fg commands to history