How to force close Realm database with Swift?

Tried both .logout and .remove and both methods turn out to have the same issue after the same user re-logs in after signing out in the same app session.