regex and dummy implementation for close session