Clean up prompt handling.