some code to query for skipped frames (performance issues in that case - various reasons posible)
disable the timer before shutting down the pipeline (to avoid race conditions between the timer accessing the pipleine while we try to shutdown)