Application automatically closing and not synchronizing observations