Fixed leaking cursor and receiver resources.
Implemented player as a service.