Added null check on close demo app :)
Removed unused constructor parameter