Edge not shutting down properly