Fixed null string bug
Fixed small bug - activity is now released after exiting