Update fullpage.py

add process closing control. give some waiting time for stable connection.