improve stability

Known issue:
    The request server stop every after users open the 'Print' dialog...